<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="box"></div>
</body>
<script>
    function  nihao(json){
        let {date,msg} = json;
        box.innerHTML  ="日期"+date+"消息"+msg;
    }
</script>
<script src="http://192.168.58.101:5500/lesson17/02.js"></script>

</html>